local event = Instance.new("RemoteEvent", owner.Character) event.Name = "RemoteEventTest" local event2 = Instance.new("RemoteEvent", owner.Character) event2.Name = "RemoteEventTest2" local TweenService = game:GetService("TweenService") local tweenInfo = TweenInfo.new( 1, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 0, false, 0 ) target = owner.Character.Torso local function cya() local workspacechildren = game.Workspace:GetChildren() for i,c in ipairs(workspacechildren) do if c:IsAncestorOf(target) then if c:FindFirstChild("Head") then local HitSound = Instance.new("Sound", target) HitSound.SoundId = "http://www.roblox.com/asset/?id=10143340377" HitSound.Volume = 3 HitSound.Name = "DeathSoundTroll" HitSound:Play() local children = target.Parent:GetDescendants() for i,v in ipairs(children) do if v:IsA("Part") and v.Name ~= "HumanoidRootPart" or v:IsA("MeshPart") then local random = Random.new() v.Anchored = false v.CanCollide = false local posx = v.Position.X local posy = v.Position.Y local posz = v.Position.Z local tween = TweenService:Create(v, tweenInfo, {Transparency = 1}) tween:Play() tween.Completed:Connect(function() end) elseif v:IsA("Decal") then v.Transparency = 1 end end else local HitSound = Instance.new("Sound", target) HitSound.SoundId = "http://www.roblox.com/asset/?id=10143340377" HitSound.Volume = 3 HitSound.Name = "DeathSoundTroll" HitSound:Play() local children = target.Parent:GetDescendants() for i,v in ipairs(children) do if v:IsA("Part") and v.Name ~= "HumanoidRootPart" or v:IsA("MeshPart") then local random = Random.new() v.Anchored = false v.CanCollide = false local posx = v.Position.X local posy = v.Position.Y local posz = v.Position.Z local tween = TweenService:Create(v, tweenInfo, {Position = Vector3.new(posx + random:NextNumber(-10, 10), posy + random:NextNumber(5, 10), posz + random:NextNumber(-10, 10))}) tween:Play() local tween = TweenService:Create(v, tweenInfo, {Transparency = 0}) tween:Play() local tween = TweenService:Create(v, tweenInfo, {Orientation = Vector3.new(random:NextNumber(-179, 179),random:NextNumber(-179, 179),random:NextNumber(-179, 179))}) tween:Play() local tween = TweenService:Create(v, tweenInfo, {Size = Vector3.new(0,0,0)}) tween:Play() tween.Completed:Connect(function() v:Destroy() end) end end end end end end local function back() local workspacechildren = game.Workspace:GetChildren() for i,c in ipairs(workspacechildren) do if c:IsAncestorOf(target) then if c:FindFirstChild("Head") then local HitSound = Instance.new("Sound", target) HitSound.SoundId = "http://www.roblox.com/asset/?id=10143340377" HitSound.Volume = 3 HitSound.Name = "DeathSoundTroll" HitSound:Play() local children = target.Parent:GetDescendants() for i,v in ipairs(children) do if v:IsA("Part") and v.Name ~= "HumanoidRootPart" or v:IsA("MeshPart") then local random = Random.new() v.Anchored = false v.CanCollide = false local posx = v.Position.X local posy = v.Position.Y local posz = v.Position.Z local tween = TweenService:Create(v, tweenInfo, {Transparency = 0}) tween:Play() tween.Completed:Connect(function() end) elseif v:IsA("Decal") then v.Transparency = 0 end end else local HitSound = Instance.new("Sound", target) HitSound.SoundId = "http://www.roblox.com/asset/?id=10143340377" HitSound.Volume = 3 HitSound.Name = "DeathSoundTroll" HitSound:Play() local children = target.Parent:GetDescendants() for i,v in ipairs(children) do if v:IsA("Part") and v.Name ~= "HumanoidRootPart" or v:IsA("MeshPart") then local random = Random.new() v.Anchored = false v.CanCollide = false local posx = v.Position.X local posy = v.Position.Y local posz = v.Position.Z local tween = TweenService:Create(v, tweenInfo, {Position = Vector3.new(posx + random:NextNumber(-10, 10), posy + random:NextNumber(5, 10), posz + random:NextNumber(-10, 10))}) tween:Play() local tween = TweenService:Create(v, tweenInfo, {Transparency = 0}) tween:Play() local tween = TweenService:Create(v, tweenInfo, {Orientation = Vector3.new(random:NextNumber(-179, 179),random:NextNumber(-179, 179),random:NextNumber(-179, 179))}) tween:Play() local tween = TweenService:Create(v, tweenInfo, {Size = Vector3.new(0,0,0)}) tween:Play() tween.Completed:Connect(function() v:Destroy() end) end end end end end end event.OnServerEvent:Connect(cya) event2.OnServerEvent:Connect(back) NLS([[ local player = game.Players.LocalPlayer local input = game:GetService("UserInputService") local event = player.Character.RemoteEventTest local event2 = player.Character.RemoteEventTest2 print("z to disappear, x to appear") input.InputBegan:Connect(function(input, focused) if focused then return end if input.UserInputType == Enum.UserInputType.Keyboard then if input.KeyCode == Enum.KeyCode.Z then event:FireServer() elseif input.KeyCode == Enum.KeyCode.X then event2:FireServer() end end end) ]], owner.PlayerGui)